package com.xw.Service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.xw.Beans.MailBox;
import com.xw.Dao.MailBoxDao;
import com.xw.Service.MailBoxService;

@Transactional
@Service
public class MailBoxServiceImpl implements MailBoxService{

	@Autowired
	private MailBoxDao mailBoxDao;
	
	@Override
	public List<MailBox> getAllMailBox() {
		return mailBoxDao.getAllMailBox();
	}

	@Override
	public MailBox getMailBoxByName(String mailBoxName) {
		return mailBoxDao.getMailBoxByName(mailBoxName);
	}

	@Override
	public Integer getMaxWaitTimeByMailBox(String mailBoxName) {
		return mailBoxDao.getMaxWaitTimeByMailBox(mailBoxName);
	}

}
